package net.martinimix.bizact.validation;

import org.springframework.validation.Errors;

import com.bluemartini.dna.DNAList;

/**
 * Provides a Blue Martini form validator.
 * 
 * @author Scott Rossillo
 *
 */
public interface BlueMartiniFormValidator {

	/**
	 * Validates the given Blue Martini form data, storing any encountered
	 * validation errors in the given errors object.
	 * 
	 * @param formData the Blue Martini form data to validate
	 * 
	 * @param errors the <code>Errors</code> object to store validation errors in
	 * 
	 * @throws Exception if an unrecoverable error occurs during form validation
	 */
	void validate(DNAList formData, Errors errors) throws Exception;
	
}
